import request from '@/utils/request'
/**
 * 客户管理
 * @see {@link http://ps.jibachuan.com/platform/swagger-ui.html#!/company-controller}
 */
const companyMod = '/company'

/**
 * [add 添加客户]
 */
export function addCustomer(data) {
    return request({
        url: `${companyMod}/add`,
        method: 'post',
        data
    })
}

/**
 * [delete 删除客户]
 */
export function delCustomer(data) {
    return request({
        url: `${companyMod}/delete`,
        method: 'post',
        data
    })
}

/**
 * [update 修改客户]
 */
export function updateCustomer(data) {
    return request({
        url: `${companyMod}/update`,
        method: 'post',
        data
    })
}